 var currentPage = 1;
 var num1 = 1;
 //列表
 loadMyEssay1(num1);

 function loadMyEssay1(num1) {
 	$(document).ready(function() {
 		init(currentPage);
 	});

 	function init(pageNo) {
 		$("#getHelpInfo").html("");
 		$.ajax({
 			url: urlcore + "/api/shoppingDirectory/selectList?status=" + 1 + "&current=" + pageNo,
 			type: "get",
 			dataType: 'json',
 			contentType: "application/json;charset=utf-8",
 			success: function(data) {
 				if(data.success == true) {
 					$.each(data.data.list, function(i, n) {
 						if(num1 == 1) {
 							var thislist1 =
 								'<div class="public_right">' +
 								'<h4>购物流程</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.shoppingProcess + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist1);
 						} else if(num1 == 2) {
 							var thislist2 =
 								'<div class="public_right">' +
 								'<h4>会员介绍</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.memberIntroduction + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist2);
 						} else if(num1 == 3) {
 							var thislist3 =
 								'<div class="public_right">' +
 								'<h4>常见问题</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.commonProblem + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist3);
 						} else if(num1 == 4) {
 							var thislist4 =
 								'<div class="public_right">' +
 								'<h4>联系客服</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.contactCustomerService + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist4);
 						}

 					});

 					$("#pager").pager({
 						pagenumber: pageNo,
 						pagecount: data.data.pages,
 						totalcount: data.data.total,
 						buttonClickCallback: PageClick
 					});

 				} else if(data.code == 'OVERTIME') {
 					var thisUrl = window.location.href;
 					//alert(thisUrl);
 					if(thisUrl.indexOf('1.0.0denglu.html') <= -1) {
 						top.window.location.href = "1.0.0denglu.html";
 					}

 				} else {
 					if(data.msg != '空数据') {
 						layer.alert(data.msg)
 					} else {
 						$('#thiscount').text(0);
 					}
 				}

 			},
 			error: function() {
 				layer.alert("error");
 			}
 		});
 	}
 	PageClick = function(pageclickednumber) {
 		init(pageclickednumber);
 	}
 }
 //购物指南
 function getShoppingDirectory(num) {
 	loadMyEssay1(num);
 }
 //var num2 = 1;
 //列表
 //loadMyEssay2(num2);

 function loadMyEssay2(num2) {
 	$(document).ready(function() {
 		init(currentPage);
 	});

 	function init(pageNo) {
 		$("#getHelpInfo").html("");
 		$.ajax({
 			url: urlcore + "/api/afterSaleService/selectList?status=" + 1 + "&current=" + pageNo,
 			type: "get",
 			dataType: 'json',
 			contentType: "application/json;charset=utf-8",
 			success: function(data) {
 				if(data.success == true) {
 					$.each(data.data.list, function(i, n) {
 						if(num2 == 1) {
 							var thislist1 =
 								'<div class="public_right">' +
 								'<h4>售后政策</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.afterSalePolicy + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist1);
 						} else if(num2 == 2) {
 							var thislist2 =
 								'<div class="public_right">' +
 								'<h4>价格保护</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.priceProtection + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist2);
 						} else if(num2 == 3) {
 							var thislist3 =
 								'<div class="public_right">' +
 								'<h4>退款说明</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.refundDescription + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist3);
 						} else if(num2 == 4) {
 							var thislist4 =
 								'<div class="public_right">' +
 								'<h4>返修/退换货</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.repairExchange + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist4);
 						} else if(num2 == 5) {
 							var thislist5 =
 								'<div class="public_right">' +
 								'<h4>取消订单</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.cancellationOfOrder + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist5);
 						}

 					});

 					$("#pager").pager({
 						pagenumber: pageNo,
 						pagecount: data.data.pages,
 						totalcount: data.data.total,
 						buttonClickCallback: PageClick
 					});

 				} else if(data.code == 'OVERTIME') {
 					var thisUrl = window.location.href;
 					alert(thisUrl);
 					if(thisUrl.indexOf('1.0.0denglu.html') <= -1) {
 						top.window.location.href = "1.0.0denglu.html";
 					}

 				} else {
 					if(data.msg != '空数据') {
 						layer.alert(data.msg)
 					} else {
 						$('#thiscount').text(0);
 					}
 				}

 			},
 			error: function() {
 				layer.alert("error");
 			}
 		});
 	}
 	PageClick = function(pageclickednumber) {
 		init(pageclickednumber);
 	}
 }
 //售后服务
 function getAfterSaleService(num) {
 	loadMyEssay2(num);
 }

 function loadMyEssay3() {
 	$(document).ready(function() {
 		init(currentPage);
 	});

 	function init(pageNo) {
 		$("#getHelpInfo").html("");
 		$.ajax({
 			url: urlcore + "/api/sellerHelp/selectList?status=" + 1 + "&current=" + pageNo,
 			type: "get",
 			dataType: 'json',
 			contentType: "application/json;charset=utf-8",
 			success: function(data) {
 				if(data.success == true) {
 					$.each(data.data.list, function(i, n) {
 						var thislist =
 							'<div class="public_right">' +
 							'<h4>商家入驻</h4>' +
 							'<div class="public_con">' +
 							'<p align="center">' + n.merchantsSettled + '</p>' +
 							'</div>' +
 							'</div>';
 						$('#getHelpInfo').append(thislist);

 					});

 					$("#pager").pager({
 						pagenumber: pageNo,
 						pagecount: data.data.pages,
 						totalcount: data.data.total,
 						buttonClickCallback: PageClick
 					});

 				} else if(data.code == 'OVERTIME') {
 					var thisUrl = window.location.href;
 					//alert(thisUrl);
 					if(thisUrl.indexOf('1.0.0denglu.html') <= -1) {
 						top.window.location.href = "1.0.0denglu.html";
 					}

 				} else {
 					if(data.msg != '空数据') {
 						layer.alert(data.msg)
 					} else {
 						$('#thiscount').text(0);
 					}
 				}

 			},
 			error: function() {
 				layer.alert("error");
 			}
 		});
 	}
 	PageClick = function(pageclickednumber) {
 		init(pageclickednumber);
 	}
 }
 //卖家帮助
 function getSellerHelp() {
 	loadMyEssay3();
 }

 function loadMyEssay4(num4) {
 	$(document).ready(function() {
 		init(currentPage);
 	});

 	function init(pageNo) {
 		$("#getHelpInfo").html("");
 		$.ajax({
 			url: urlcore + "/api/aboutUs/selectList?status=" + 1 + "&current=" + pageNo,
 			type: "get",
 			dataType: 'json',
 			contentType: "application/json;charset=utf-8",
 			success: function(data) {
 				if(data.success == true) {
 					$.each(data.data.list, function(i, n) {
 						if(num4 == 1) {
 							var thislist1 =
 								'<div class="public_right">' +
 								'<h4>关于我们</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.aboutUs + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist1);
 						} else if(num4 == 2) {
 							var thislist2 =
 								'<div class="public_right">' +
 								'<h4>联系我们</h4>' +
 								'<div class="public_con">' +
 								'<p align="center">' + n.contactUs + '</p>' +
 								'</div>' +
 								'</div>';
 							$('#getHelpInfo').append(thislist2);
 						}

 					});

 					$("#pager").pager({
 						pagenumber: pageNo,
 						pagecount: data.data.pages,
 						totalcount: data.data.total,
 						buttonClickCallback: PageClick
 					});

 				} else if(data.code == 'OVERTIME') {
 					var thisUrl = window.location.href;
 					//alert(thisUrl);
 					if(thisUrl.indexOf('1.0.0denglu.html') <= -1) {
 						top.window.location.href = "1.0.0denglu.html";
 					}

 				} else {
 					if(data.msg != '空数据') {
 						layer.alert(data.msg)
 					} else {
 						$('#thiscount').text(0);
 					}
 				}

 			},
 			error: function() {
 				layer.alert("error");
 			}
 		});
 	}
 	PageClick = function(pageclickednumber) {
 		init(pageclickednumber);
 	}
 }
 //关于我们
 function getAboutUs(num) {
 	loadMyEssay4(num);
 }